﻿
Imports planet.storageJobConsumerInternal

Public Class isyncslice_slice(Of T As {isyncslice, New})
    Inherits slice

    Public Sub New()
        MyBase.New(New sync_to_async_wrapper(New T()))
    End Sub

    Protected Shared Function cast(ByVal i As Object) As T
        Return convertor.cast(Of T)(
                   convertor.cast(Of sync_to_async_wrapper)(
                       convertor.cast(Of isyncslice_slice(Of T))(i) _
                   .asyncslice()) _
               .syncslice())
    End Function
End Class
